package com.captjack.micro.service.message.handler;

import com.captjack.micro.common.entity.EmailMessageEntity;

import java.io.File;
import java.util.ArrayList;

/**
 * 邮件服务
 *
 * @author Capt Jack
 * @date 2018/4/17
 */
public interface EmailService {

    /**
     * 发送邮件（UTF-8编码）
     *
     * @param emailMessageEntity 邮件
     * @return 是否发送成功
     * @throws Exception 异常
     */
    boolean sendEmail(EmailMessageEntity emailMessageEntity) throws Exception;

}
